import yaml


def get_yaml_data(file_path):
    '''
    读取 yaml 文件内容
    file_path: 要读取的 yaml 文件的路径
    '''
    with open(file_path, encoding="utf-8") as f:
        datas = yaml.safe_load(f)
    return datas



if __name__ == '__main__':
    print(get_yaml_data("./goods.yaml").get("new_goods"))